package com.gticket.customerbackend.service.impl;

import com.gticket.customerbackend.mapper.OrderMapper;
import com.gticket.customerbackend.pojo.Orders;
import com.gticket.customerbackend.service.OrderService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Data
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Orders> listOrders(Orders orders) {
        return orderMapper.listAllOrders(orders);
    }

    @Override
    public List<Orders> listOrdersByState(Orders orders) {
        return orderMapper.listOrdersByState(orders);
    }
}
